.sidebar-menu {
  .el-menu {
    border: none;
    height: 100%;
    width: 100% !important;
  }

  .el-menu-item {
    height: 54px !important;
    line-height: 54px !important;
    border-radius: $base-border-radius !important;
  }

  .el-menu-item,
  .el-submenu__title {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;

    span {
      font-weight: bold !important;
    }
  }

  .el-menu-item.is-active {
    color: white !important;
    background-color: $base-menu-background-active !important;
  }

  .sidebar-menu-item {
    margin: 16px 32px;
  }

  .el-submenu .el-menu-item {
    padding: 0 20px !important;
  }
}

.el-menu--collapse .el-menu .el-submenu {
  min-width: $base-left-menu-width !important;
}

.withoutAnimation {
  .main-container,
  .sidebar-container {
    transition: none;
  }
}

// when menu collapsed
.el-menu--vertical {
  & > .el-menu {
    .svg-icon {
      margin-right: 16px;
    }
  }

  // the scroll bar appears when the subMenu is too long
  > .el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }
}
